package v1

import (
	"github.com/gogf/gf/v2/frame/g"
	"tFilm4/internal/model"
)

type CreateMovieOrderReq struct {
	g.Meta      `path:"/movieOrder/create" method:"post" tags:"MovieOrderService" summary:"创建订单"`
	UserId      int64   `v:"required#请输入用户编号"`
	SessionId   int64   `v:"required#请输入场次编号"`
	MovieName   string  `v:"required#请输入电影名"`
	MovieImage   string  `v:"required#请输入电影封面"`
	TotalPrice  float64 `v:"required#请输入总价"`
	SelectTable string  `v:"required#请输入选座座位"`
}
type CreateMovieOrderRes struct {
}

type GetMovieOrderByUserIdReq struct {
	g.Meta `path:"/movieOrder/userId" method:"post" tags:"MovieOrderService" summary:"获取用户订单"`
	UserId int64 `v:"required#请输入用户编号"`
}
type GetMovieOrderByUserIdRes struct {
	OrderInfos []model.OrderInfo `json:"list"`
	Count      int               `json:"count"`
}

type GetMovieOrderByIdReq struct {
	g.Meta `path:"/movieOrder/id" method:"post" tags:"MovieOrderService" summary:"根据编号获取订单"`
	OrderId int64 `v:"required#请输入订单编号"`
}
type GetMovieOrderByIdRes struct {
	OrderInfo *model.OrderInfo `json:"info"`
}